package com.lh0811.forge.pserv.uacs.server.repository.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * 开发平台-岗位数据权限规则
 *
 * @author
 * @email
 * @date 2024-05-24 15:39:46
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@TableName("pserv_uacs_data_rule")
public class UacsDataRule implements Serializable {

    @TableId(type = IdType.NONE)
    @Schema(description = "主键")
    private Long id;
    @Schema(description = "数据表")
    private String dataTable;
    @Schema(description = "数据表名称")
    private String dataTableName;
    @Schema(description = "数据表维度字段")
    private String dataDimension;
    @Schema(description = "数据表维度字段名称")
    private String dataDimensionName;
    @Schema(description = "数据规则名称")
    private String dataRuleName;
    @Schema(description = "规则逻辑：1-等于 2-不等于 3-大于 4-小于 5-大于等于 6-小于等于 7-包含 8-不包含 9-在列表中 10-不在列表中")
    private String ruleLogic;
    @Schema(description = "逻辑值来源： 1-后台维护 2-系统数据源 3-系统提供")
    private String ruleValueSource;
    @Schema(description = "逻辑值")
    private String ruleValue;
    @Schema(description = "获取数据源列表的URL")
    private String ruleSourceUrl;
    @Schema(description = "系统数据值提供器全类名")
    private String ruleValueProvider;
    @Schema(description = "1-字符串 2-数字")
    private String valueType;
    @Schema(description = "1-单值 2-列表 3-字典")
    private String valueStruct;
    @Schema(description = "备注")
    private String notes;
    @Schema(description = "创建时间")
    private Date createTime;
    @Schema(description = "创建人")
    private Long createBy;
    @Schema(description = "更新时间")
    private Date updateTime;
    @Schema(description = "更新人")
    private Long updateBy;
    @Schema(description = "拓展信息")
    private String extInfo;

}
